import request from "../request";


/**
 * 登录
 * @param data
 * @returns {Promise<unknown>}
 */
export function loginByPhone(data) {
  return request.post('clinic/portal/customerLogin/login', data)
}

export function sendCode(data) {
    return request.post('clinic/portal/customerLogin/sendCode', data)
}

export function getUserInfo() {
    return request.get('clinic/portal/customerLogin/getUserInfo')
}


